package com.zoe.onelink.feign.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-06-04
 */
@Data
@ConfigurationProperties(prefix = "onelink.feign")
public class OnelinkFeignProperties {

    private Request request = new Request();

    @Data
    public static class Auth {

        private boolean enabled = true;

        private String apiPrefix = "/inner/**";

    }


    @Data
    public static class Request {

        private Set<String> transferHeaders = new HashSet<>();

        private Map<Class<? extends Throwable>, Boolean> retryExceptionMap = new HashMap<>();

    }


}
